ifeq ($(TARGET_DIR_BIN), )
    TARGET_DIR_BIN := /usr/local/bin
endif

ifneq ($(shell whoami), root)
    TARGET_DIR_BIN := $${HOME}/bin
endif

all: install

install:
	mkdir -p $(TARGET_DIR_BIN)
	ln -sf $(shell pwd)/sbin/ccb $(TARGET_DIR_BIN)/ccb
	bash sbin/install-dependencies.sh

ctags:
	ctags -R --links=no
